<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style/global.css" />
<link rel="stylesheet" type="text/css" href="style/admin.css" />
<link rel="stylesheet" type="text/css" href="style/tip.css" />
<title>题目管理__修改</title>
</head>
<body>
<div id="wrap">
<div id="public_head"></div>
<div class="m_revise" id="revise">
        <div class="bc">
        	<form method="post" action="" id="visit-result-form" name="visit-result-form">
        	<table class="tableForm" width="100%" border="0">
              <tr><th height="35" width="100">回访结果：</th><td>
              	<select id="status" class="select" name="status">
              	<?php 
              	$visitStatus = ATools::getConfig('app.visitStatus');
              	$unvisit = array_slice($visitStatus, 0, 1);
              	array_shift($visitStatus);
              	$visitStatus = array_merge($visitStatus, $unvisit);
              	foreach ($visitStatus as $value=>$name) {
              		$flag = '';
              		if($visitinfo['VISIT_STATE'] == $value)$flag = ' selected ';
              		echo '<option value="'.$value.'" '.$flag.'>'.$name.'</option>';
              	}
              	?>
              	</select></td></tr>
               <tr id="result-row"><th height="35" width="100">回访评价：</th><td>
               <select id="result" class="select" name="result">
               <?php 
               $visitResult = ATools::getConfig('app.visitResult');
               foreach ($visitResult as $value=>$name) {
               		$flag = '';
              		if($visitinfo['VISIT_RESULT'] == $value)$flag = ' selected ';
               		echo '<option value="'.$value.'" '.$flag.'>'.$name.'</option>';
               }
               ?>
               </select></td></tr>
              <tr><th style="vertical-align:top;">内容：</th><td><textarea class="textarea" name="content" cols="2" rows="10"><?php echo $visitinfo['CONTENT'];?></textarea></td></tr>
              <tr><th height="35">&nbsp;</th><td><input name="track" type="checkbox" value="1" <?php if($visitinfo['IS_TRACK']==1){echo 'checked';}?>/>需要继续跟进</td></tr>
              <tr><th height="35">&nbsp;</th><td><input id="save-btn" class="btn_save" name="save_visit" type="submit" value="" style="float:left;"/><input style="float:left; margin-left: 10px;" id="close-btn" class="btn_gray" onclick='history.back();' name="" type="button" value="返 回"/></td></tr>
            </table>
            </form>
        </div>
</div>
</div>
<script src="js/xheditor/jquery/jquery-1.4.4.min.js"></script>
</body>
</html>
<script src="js/boot.js"></script>
<script src="js/tip.js"></script>
<script src="js/checkform.js"></script>
<script src="/js/add_public_head.js" type="text/javascript"></script>
<script type="text/javascript">
$('select#status').change(function(){
	if($(this).val()!='B'){
		$('select#result').attr('name','');
		$('select#result').attr('disabled',true)
	}else{
		$('select#result').attr('name','result');
		$('select#result').attr('disabled',false)
	}
})
if($('select#status').val()!='B'){
	$('select#result').attr('name','');
	$('select#result').attr('disabled',true)
}
</script>